package main

import (
	"fmt"
	"go_code/20210825/api"
)

// func intTest() int  {
// 	fmt.Println("intTest函数被执行")
// 	return 10
// }

/*func init()  {
	fmt.Println("init函数被执行")
}*/

func main() {
	fmt.Println("main函数被执行")
	str := api.InnerApi()
	fmt.Printf("类型是：%T,值是：%v,地址是：%v,指针指向的值是：%v\n", str, str, &str, *str)
	/*fmt.Println(api.TimeApi().Year())
	fmt.Println(int(api.TimeApi().Month()))
	fmt.Println(api.TimeApi().Day())
	fmt.Println(api.TimeApi().Hour())
	fmt.Println(api.TimeApi().Minute())
	fmt.Println(api.TimeApi().Second())
	fmt.Println("---------------------")
	fmt.Println(api.TimeApi().Format("2006-01-02 15:04:05"))
	fmt.Println("---------------------")*/
	/*f := api.GetSum()
	fmt.Println(f(1))
	fmt.Println(f(2))
	fmt.Println("-------------")
	fmt.Println(api.GetSumBak(1))
	fmt.Println(api.GetSumBak(2))
	fmt.Println("-------------")
	api.Add(30, 60)*/
	// fmt.Println("名字是：",api.Name,"年龄是：",api.Age,"性别为：",api.Sex)
}
